package cn.tedu._07springaoptest.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.applet.AppletContext;

public class CartServiceTest {
    public static void main(String[] args) {
        ApplicationContext context=new AnnotationConfigApplicationContext("cn.tedu._07springaoptest");
        CartServiceImpl bean=context.getBean(CartServiceImpl.class);
        bean.addCart("华为手机遥遥领先");
    }
}
